<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <!--<link rel="stylesheet" href="css">-->
    <style>ul{list-style: none;}</style>
    <script type="text/javascript" src="vue/vue.min.js"></script>

</head>
<body>
<div id="ul">
    <ul>
        <li v-for="i in list">{{ i }}</li>
        <!--第一个值为列表值，第二个为索引-->
        <li v-for="(i, j) in list">{{ j+1 }} - {{ i }}</li>
    </ul>
    <ul>
        <!--字典形式，第一个值为值value，第二个为键key-->
        <li v-for="(i, j) in dict">{{ j }}: {{ i }}</li>
    </ul>
</div>
</body>
<script type="text/javascript">
    var vm = new Vue({
        el:"#ul",
        data:{
            list:["html", "css", "js"],
            dict:{"name": "html", "age": "unknown"},
        },
    })
</script>
</html>